package system

import (
	"MoSkeleton/framework/core/models"
	"database/sql"
)

type SysConfig struct {
	models.MoModel
	ConfigName  string         `gorm:"column:config_name;type:VARCHAR(100);"`
	ConfigKey   string         `gorm:"column:config_key;type:VARCHAR(100);"`
	ConfigValue string         `gorm:"column:config_value;type:VARCHAR(500);"`
	ConfigType  string         `gorm:"column:config_type;type:CHAR(1);"`
	CreatedBy   string         `gorm:"column:created_by;type:VARCHAR(32);"`
	UpdatedBy   string         `gorm:"column:updated_by;type:VARCHAR(32);"`
	Remark      sql.NullString `gorm:"column:remark;type:VARCHAR(500);"`
}

func (b *SysConfig) TableName() string {
	return "sys_config"
}
